aboutsummaryrefslogtreecommitdiff
path: root/pages/api/v2/episode/[id].js
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-09-16 15:39:47 +0700
committerFactiven <[email protected]>2023-09-16 15:39:47 +0700
commitdfb45f454514bb31fb10fedbad3bb946c793e246 (patch)
treea4829574989a17faed4a94ad168bcdb4f5ad2836 /pages/api/v2/episode/[id].js
parentUpdate v4.0.2 (#75) (diff)
downloadmoopa-4.0.3.tar.xz
moopa-4.0.3.zip
Update v4.0.3v4.0.3
Diffstat (limited to 'pages/api/v2/episode/[id].js')
-rw-r--r--pages/api/v2/episode/[id].js4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/api/v2/episode/[id].js b/pages/api/v2/episode/[id].js
index e17f76a..c5d98f5 100644
--- a/pages/api/v2/episode/[id].js
+++ b/pages/api/v2/episode/[id].js
@@ -77,8 +77,8 @@ async function fetchAnify(id) {
export default async function handler(req, res) {
const { id, releasing = "false", dub = false } = req.query;
- // if releasing is true then cache for 10 minutes, if it false cache for 1 week;
- const cacheTime = releasing === "true" ? 60 * 10 : 60 * 60 * 24 * 7;
+ // if releasing is true then cache for 10 minutes, if it false cache for 1 month;
+ const cacheTime = releasing === "true" ? 60 * 10 : 60 * 60 * 24 * 30;
let cached;